//
//  CycleUnCaughtExceptionHandler.h
//  cycleFunctionView
//
//  Created by ddy on 2019/1/15.
//  Copyright © 2019年 cycle. All rights reserved.
//  处理Signal Sigpipe was raised 异常,避免线上app闪退

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface CycleUnCaughtExceptionHandler : NSObject
/*!
 *  异常的处理方法
 *
 *  @param install   是否开启捕获异常
 *  @param showAlert 是否在发生异常时弹出alertView
 */
+ (void)installUncaughtExceptionHandler:(BOOL)install showAlert:(BOOL)showAlert;
/**
 使用
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
 // Override point for customization after application launch.
 
 [UncaughtExceptionHandler installUncaughtExceptionHandler:YES showAlert:YES];
 return YES;
 }
 */
 
@end

NS_ASSUME_NONNULL_END
